package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.service.BaseService;
import com.czd.support.model.PhoneCode;

/**
 * @Description 手机验证码业务类
 * @author caoren
 * @Date 2015/05/21
 */
@Service
public class PhonecodeService extends BaseService<PhoneCode>{
	
	public boolean insert(PhoneCode phoneCode){
		return this.insert(sqlId("insert"), phoneCode);
	}
	
	public boolean update(PhoneCode phoneCode){
		return this.update(sqlId("update"), phoneCode);
	}
	
	public PhoneCode findByMobilePhone(String mobilePhone){
		return this.selectOne(sqlId("findByMobilePhone"), mobilePhone);
	}
}
